#include "semaphore.hpp"

using namespace systemos;

semaphore::semaphore(void)
{
	mQueueHandle = xSemaphoreCreateMutex();
}

BaseType_t semaphore::Take(TickType_t xTicksToWait)
{
	return(xSemaphoreTake(mQueueHandle, xTicksToWait));
}

BaseType_t semaphore::Give(void)
{
	return(xSemaphoreGive(mQueueHandle));
}
